// component/component.js
Component({
  options: {
    multipleSlots: true
  },
  properties: {
    title: {
      type: String,
      value: '标题'
    },
    content: {
      type: String,
      value: '弹窗内容'
    },
    confirmText: {
      type: String,
      value: '确定'
    },
  },
  data: {
    isShow: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    hideWrongTip() {
      this.setData({
        isShow: !this.data.isShow
      })
    },
    showWrongTip() {
      this.setData({
        isShow: !this.data.isShow
      })
    },
    _confirmTip() {
      this.triggerEvent('confirmTip')
    }
  }
})
